<h1>New entry</h1>

<%= error_messages_for :entry %>

<% form_for(:entry, :url => entries_path) do |f| %>
	
<div class="skinny_left">
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Kicker</b><br />
    <%= f.text_field :kicker %>
  </p>

  <p>
    <b>Author name</b><br />
    <%= f.text_field :author_name %>
  </p>

  <p>
    <b>Published at</b><br />
    <%= f.date_select :published_at %>
  </p>

  <p>
    <b>Permalink</b><br />
    <%= f.text_field :permalink %>
  </p>

  <p>
    <b>Active</b><br />
    <%= f.check_box :active %>
  </p>

</div>
<div class="wide_right">
  <p>
    <b>Body</b><br />
    <%= f.text_area :body, :cols => "60" %>
  </p>

	<p>
	  <b>Summary</b><br />
	  <%= f.text_area :summary, :cols => "60", :rows => 4 %>
	</p>

  <p>
    <%= submit_tag "Create" %>
  </p>
</div>
<% end %>
<%= snr %>
<%= link_to 'Back', entries_path %>